<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Vue中CSS动画原理模板页面</title>
    <script src="../lib/vue.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="root">
    <div v-if="show">hello world</div>
    <button @click="handleClick">切换</button>
</div>
<script type="text/javascript">
    var vm = new Vue({
        el: "#root",
        data: {
            show: true
        },
        methods: {
            handleClick: function () {
                this.show = !this.show
            }
        },
    });
</script>
<style type="text/css">

</style>
</body>
</html>
